package com.example.demo.utils.model;

/**
 * @author xueyj
 * @date 9:34 2021/1/12
 */
public enum TradeType {
    /*支付状态*/
    TRADETYPE_SUCCESS("SUCCESS", "支付成功"),

    TRADETYPE_REFUND("REFUND", "转入退款"),

    TRADETYPE_NOTPAY("NOTPAY", "未支付"),

    TRADETYPE_CLOSED("CLOSED", "已关闭"),

    TRADETYPE_USERPAYING("USERPAYING", "用户支付中（付款码支付）"),

    TRADETYPE_REVOKED("REVOKED", "已撤销（付款码支付）"),

    TRADETYPE_PAYERROR("PAYERROR", "付失败(其他原因，如银行返回失败)");


    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    TradeType(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
